package app.vendorportal.api.marketplace.data.request;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author vince
 */
@XmlRootElement(name = "query-product-price-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryProductPriceBySkuRequest {

    @NotNull
    @XmlElement(name = "last-update-time")
    private Date lastUpdateTime;

    @XmlElement(name = "vendor-number")
    private String vendorNumber;

    @XmlElementWrapper(name = "sku-codes")
    @XmlElement(name = "sku-code")
    private final List<String> skuCodes = new ArrayList<>();

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getVendorNumber() {
        return vendorNumber;
    }

    public void setVendorNumber(String vendorNumber) {
        this.vendorNumber = vendorNumber;
    }

    public List<String> getSkuCodes() {
        return skuCodes;
    }

}
